﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainingsApp.Helper {
    public class ControlHelper {

        public static string FormatDateTime(DateTime? datetime) {
            if (datetime.HasValue) {
                return datetime.Value.ToString("yyyy-MM-dd hh:mm:ss");
            }
            else {
                return string.Empty;
            }
        }
    }
}
